package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class School implements Serializable {
    private String sno;

    private String ano;

    private String sano;

    private String rno;

    private String sname;

    private String sdescribe;

    private Integer sstate;

    private String simg;

    private static final long serialVersionUID = 1L;

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getAno() {
        return ano;
    }

    public void setAno(String ano) {
        this.ano = ano;
    }

    public String getSano() {
        return sano;
    }

    public void setSano(String sano) {
        this.sano = sano;
    }

    public String getRno() {
        return rno;
    }

    public void setRno(String rno) {
        this.rno = rno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSdescribe() {
        return sdescribe;
    }

    public void setSdescribe(String sdescribe) {
        this.sdescribe = sdescribe;
    }

    public Integer getSstate() {
        return sstate;
    }

    public void setSstate(Integer sstate) {
        this.sstate = sstate;
    }

    public String getSimg() {
        return simg;
    }

    public void setSimg(String simg) {
        this.simg = simg;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        School other = (School) that;
        return (this.getSno() == null ? other.getSno() == null : this.getSno().equals(other.getSno()))
            && (this.getAno() == null ? other.getAno() == null : this.getAno().equals(other.getAno()))
            && (this.getSano() == null ? other.getSano() == null : this.getSano().equals(other.getSano()))
            && (this.getRno() == null ? other.getRno() == null : this.getRno().equals(other.getRno()))
            && (this.getSname() == null ? other.getSname() == null : this.getSname().equals(other.getSname()))
            && (this.getSdescribe() == null ? other.getSdescribe() == null : this.getSdescribe().equals(other.getSdescribe()))
            && (this.getSstate() == null ? other.getSstate() == null : this.getSstate().equals(other.getSstate()))
            && (this.getSimg() == null ? other.getSimg() == null : this.getSimg().equals(other.getSimg()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSno() == null) ? 0 : getSno().hashCode());
        result = prime * result + ((getAno() == null) ? 0 : getAno().hashCode());
        result = prime * result + ((getSano() == null) ? 0 : getSano().hashCode());
        result = prime * result + ((getRno() == null) ? 0 : getRno().hashCode());
        result = prime * result + ((getSname() == null) ? 0 : getSname().hashCode());
        result = prime * result + ((getSdescribe() == null) ? 0 : getSdescribe().hashCode());
        result = prime * result + ((getSstate() == null) ? 0 : getSstate().hashCode());
        result = prime * result + ((getSimg() == null) ? 0 : getSimg().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sno=").append(sno);
        sb.append(", ano=").append(ano);
        sb.append(", sano=").append(sano);
        sb.append(", rno=").append(rno);
        sb.append(", sname=").append(sname);
        sb.append(", sdescribe=").append(sdescribe);
        sb.append(", sstate=").append(sstate);
        sb.append(", simg=").append(simg);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}